<?php
$options = array(
	'options' => array(
		'showAnim' => 'fold',
		'monthNames' => array(
			t('January'), t('February'), t('March'), t('April'), t('May'), t('June'),
			t('July'), t('August'), t('September'), t('October'), t('November'), t('December'),
		),
		'dayNames' => array(
			t('Sunday'), t('Monday'), t('Tuesday'), t('Wednesday'),
			t('Thursday'), t('Friday'), t('Saturday'),
		),
		'dateFormat' => app()->params['jsDateFormat'],
		'currentText' => t('Today'),
	),
	'htmlOptions' => array(
		'size' => 10,
		'class' => 'input-text',
	),
);

if ( !empty($model) && !empty($attribute) ) {
	$options['model'] = $model;
	$options['attribute'] = $attribute;
} else {
	$options['name'] = $name;
	$options['value'] = $value;
}

$this->widget('zii.widgets.jui.CJuiDatePicker', $options); ?>